// +---------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------

import LayoutMain from '@/layout';
import setting from '@/setting';
let routePre = setting.routePre;

const pre = 'course_';

export default {
  path: routePre + '/course',
  name: 'course',
  header: 'course',

  redirect: {
    name: `${pre}catelist`,
  },
  component: LayoutMain,
  children: [
	  
	  
	  {
	    path: 'catelist',
	    name: `${pre}catelist`,
	    meta: {
	      title: '课程分类',
	      auth: ['admin-course-catelist-index'],
	    },
	    component: () => import('@/pages/course/catelist'),
	  },
	  
	  {
	    path: 'courselist',
	    name: `${pre}courselist`,
	    meta: {
	      title: '课程列表',
	      auth: ['admin-course-courselist-index'],
	    },
	    component: () => import('@/pages/course/courselist'),
	  },
	  {
	    path: 'add_course/:id?',
	    name: `${pre}addcourse`,
	    meta: {
	      auth: ['admin-course-addcourse'],
	      title: '课程添加',
	      activeMenu: routePre + '/course/courselist',
	    },
	    component: () => import('@/pages/course/courseadd'),
	  },
	  
	  {
	    path: 'add_chapter/:id?',
	    name: `${pre}addchapter`,
	    meta: {
	      auth: ['admin-course-addchapter'],
	      title: '章节添加',
	      activeMenu: routePre + '/course/courselist',
	    },
	    component: () => import('@/pages/course/chapteradd'),
	  },
	  
	  {
	    path: 'add_questions/:id?',
	    name: `${pre}addquestions`,
	    meta: {
	      auth: ['admin-course-addquestions'],
	      title: '试题列表',
	      activeMenu: routePre + '/course/courselist',
	    },
	    component: () => import('@/pages/course/questionsadd'),
	  },
	  
	  {
	    path: 'add_questionstwo/:id?',
	    name: `${pre}addquestionstwo`,
	    meta: {
	      auth: ['admin-course-addquestionstwo'],
	      title: '试题列表',
	      activeMenu: routePre + '/course/courselist',
	    },
	    component: () => import('@/pages/course/questionsaddtwo'),
	  },
	  {
	    path: 'group_chat/index',
	    name: `${pre}group_chat`,
	    meta: {
	      auth: ['admin-course-group-chat'],
	      title: '群组管理',
	    //   activeMenu: routePre + '/course/group_chat',
	    },
	    component: () => import('@/pages/course/group_chat'),
	  },

	  {
	    path: 'group_chat_copy/index',
	    name: `${pre}chat_check_copy`,
	    meta: {
	      auth: ['admin-course-group-chat-check'],
	      title: '关键词',
	    //   activeMenu: routePre + '/course/chat_check',
	    },
	    component: () => import('@/pages/course/group_chat/chat_check'),
	  }
	
	
	
  ],
};
